package com.xgz.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class LayData {
    private Integer code = 0;
    private String msg = "";
    private Integer count;
    private Object data;

    public LayData(Integer count, List<?> data) {
        this.code = 0;
        this.msg = "";
        this.count = count;
        this.data = data;
    }

    public LayData(Object data) {
        this.code = 0;
        this.msg = "";
        this.data = data;
    }
}
